<template>
    <el-cascader
        :options="DepartList"
        v-model="projectDepartperson"
        filterable @change="GetDepart()"></el-cascader>
</template>
<script>
export default {
    data() {
        return{
            projectDepartperson:'',
            DepartList:[],
        }
    },
    created(){
        this.GetDepartList();
    },
    methods:{
        GetDepartList(){
            this.http.get("api/depart/DepartShow").then((res) => {
                console.log(res);
                this.DepartList = res;
            });
        },
        GetDepart(){
            // alert(this.projectDepartperson)
            this.$emit("GetDepart",this.projectDepartperson)
        }
    }
}
</script>